/* 
 * File:   EnviromentParser.h
 * Author: RedEyedKiller
 *
 * Created on 17 Νοέμβριος 2010, 2:23 μμ
 */

#ifndef ENVIROMENTPARSER_H
#define	ENVIROMENTPARSER_H

#include "AbstractParser.h"
#include <string>

namespace FileParser
{

/**
 * Reads an enviroment data xml file.
 */
class EnviromentParser : public AbstractParser
{
public:
    EnviromentParser();
    virtual ~EnviromentParser();
    bool ParseEnviroment(std::string& fname);
private:
    bool ParseGravity(TiXML::TiXmlElement* xGrav);
    bool ParseWind(TiXML::TiXmlElement* xWind);
    bool ParseResistance(TiXML::TiXmlElement* xRes);
};

};
#endif	/* ENVIROMENTPARSER_H */

